package com.iss.apartmentmanage.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateFormat {
    public static String formatDateToGeneralType(Date date, String type) {
        SimpleDateFormat sdf = new SimpleDateFormat(type);

        return sdf.format(date);
    }
}
